import Vue from "vue";
import App from "./app.vue";

import JLG from "../src/main";

import Router from "vue-router";
import router from "./router";

Vue.config.productionTip = false;

const originalPush = Router.prototype.push;
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch((err) => err);
};

import "./icons/iconfont.css";

Vue.use(Router);
Vue.use(JLG);

new Vue({
  el: "#app",
  router,
  components: { App },
  template: "<App/>"
});
